package com.yuexunit.finance.project.action.v1;

import com.yuexunit.finance.context.FinVersion1;
import com.yuexunit.finance.project.action.v1.model.AuditWarning;
import com.yuexunit.page.PageCriteria;
import com.yuexunit.page.PageList;
import com.yuexunit.web.annotation.Action;
import com.yuexunit.web.annotation.Parameter;
import com.yuexunit.web.annotation.Permission;

/**
 * @author wenwenlong
 */
public interface WarningCenterActionApi {
	
	@Permission
	@Action(version = FinVersion1.class, description = "修改风险预警")
	public void updateAuditWarning(
			@Parameter(name = "auditWarningId", description = "审批预警ID") String auditWarningId,
			@Parameter(name = "auditStation", description = "审批岗位") String auditStation,
			@Parameter(name = "auditStationId", description = "审批岗位ID", nullable= true) Long auditStationId,
			@Parameter(name = "agingTime", description = "时效标准") Integer agingTime,
			@Parameter(name = "warningTime", description = "预警标准") Integer warningTime
	);
	
	@Permission
	@Action(version = FinVersion1.class, description = "查询风险预警列表")
	public AuditWarning inquireAuditWarning(
			@Parameter(name = "auditWarningId", description = "审批预警ID") String auditWarningId
	);
	
	@Permission
	@Action(version = FinVersion1.class, description = "查询风险预警列表")
	public PageList<AuditWarning> inquireAuditWarningPageList(
			@Parameter(name = "page", description = "分页参数") PageCriteria page
	);
}
